<?php
/**
 * @File	  : lang_model.php
 * @Project	  : vncphathoc
 * @author	  : ThanhMinh
 * @email	  : thanhminhld@yahoo.com - thanhminhld@gmail.com
 * @copyright : 2009
 */
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Lang_model extends Base_Model
{
	/**
	 * __construct
	 * @access public
	 * @param
	 * @return
	 */
	public function __construct()
	{
		parent::__construct();
		$this->_tbl = 'lang';
	}
	/**
	 * getLangDefault
	 * @access public
	 * @param
	 * @return
	 */
	public function getLangDefault()
	{
		$row = $this->get_row( array('default'=>1) );
		return $row;
	}
	/**
	  * getLang
	  * @access public
	  * @param
	  * @return
	  */
	public function getLang()
	{
		$query = $this->db->get( $this->_tbl );
		return $query->result_object();
	}
}
?>